package com.example.demo.controller;

import com.example.demo.service.TestAopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试apo的网络接口
 */
@RestController
@RequestMapping("/aop")
public class AopController {


    @Autowired
    TestAopService testAopService;

    @RequestMapping("/test01")
    public String index(){
        testAopService.test();
        return "这只是一个测试";
    }
}
